// pages/user/user.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userinfo:{},
    collectNums:0,
  },



  onLoad: function (options) {

  },

 
  onShow: function () {
    const userinfo=wx.getStorageSync('userinfo');
    const collect=wx.getStorageSync('collect')||[];
    this.setData({userinfo,collectNums:collect.length});
    
  },


})